#ifndef LED_H
#define LED_H

#include <Observer/Observer.h>
#include <Bounce/ObservableBounce.h>

#include "Thermostat.h"

class LED : public Observer {
 public:
   explicit LED(uint8_t redPin, uint8_t greenPin, uint8_t bluePin,
   ObservableBounce *doorSwitch, Thermostat *thermostat);
   void init();
   void update(Observable *o);
   void setColor(int red, int green, int blue);
   void updateColor();
 private:
   ObservableBounce *doorSwitch;
   Thermostat *thermostat;
   uint8_t redPin, greenPin, bluePin;
};

#endif
